package com.baturu.vin.ford;

import com.baturu.ford.carvin.dal.SimpleDAO;
import com.baturu.vin.test.AbstractBaseCase;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Author: chenjiahao
 * @Time: 2019/12/6
 */
public class PartSql extends AbstractBaseCase {

    @Autowired
    SimpleDAO dao;

    @Test
    public void name() {
        int max = dao.queryCartypeMAXId();
        int start = 15300;
        int end = 15400;
        while (start<max){
            dao.inster(start,end);
            start+=100;
            end+=100;
            System.out.println("已完成" + start);
        }
        dao.inster(end,max);

    }
}
